package com.hrzyit.whistle.im.ui.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 *
 * @author YangWei
 * @date 2019/4/22
 */
class CommonFragmentPagerAdapter(fm: FragmentManager, private val list: MutableList<Fragment>) :
    FragmentPagerAdapter(fm) {


    override fun getItem(position: Int): Fragment {
        return list[position]
    }

    override fun getCount(): Int {
        return list.size
    }
}